How to read multiple File names present in perticular folder

Hi DXL User,

In perl the following option is there to read the multiple file names persent in the perticulat folder.

@files = glob join "",$Folder_path,"/*.xls"

 


Similarly is there any way to read all the file names present in the perticular folder using DXL scripting.
Please reply your suggestion.
Thanks in advance

 


azmath_india - Tue Jul 12 09:15:17 EDT 2011

Re: How to read multiple File names present in perticular folder
OurGuest - Tue Jul 12 10:08:23 EDT 2011

Check here: http://www.smartdxl.com/content/?p=618

Re: How to read multiple File names present in perticular folder
azmath_india - Wed Jul 13 02:27:59 EDT 2011

OurGuest - Tue Jul 12 10:08:23 EDT 2011
Check here: http://www.smartdxl.com/content/?p=618

Thanks for your help

But the script which you suggested will return the selected folder path only.

Actually I need names of the pertucular type of files present in the selected folder. For example (*.xls)

Re: How to read multiple File names present in perticular folder
Mathias Mamsch - Wed Jul 13 04:49:39 EDT 2011

azmath_india - Wed Jul 13 02:27:59 EDT 2011
Thanks for your help

But the script which you suggested will return the selected folder path only.

Actually I need names of the pertucular type of files present in the selected folder. For example (*.xls)

Check out the for strFile in directory sPathname do loop. Example:
 

string s = ""
string sPath = "C:\\Temp"
 
for s in directory sPath do {
    if (s == "." || s == "..") continue
        print "FILE: " (sPath "/" s) "\n"
}

 


Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

Re: How to read multiple File names present in perticular folder
azmath_india - Wed Jul 13 07:10:07 EDT 2011

Mathias Mamsch - Wed Jul 13 04:49:39 EDT 2011

Check out the for strFile in directory sPathname do loop. Example:
 

string s = ""
string sPath = "C:\\Temp"
 
for s in directory sPath do {
    if (s == "." || s == "..") continue
        print "FILE: " (sPath "/" s) "\n"
}

 


Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

Thank you Mathias, this is what I'm looking for. :-)
Regards
Azmath